<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>adminindex</title>
<link href="../../css/style.css" rel="stylesheet" type="text/css" />
<style>
body{
	background-color: #EAEBE3;
}
</style>
<script language="javascript">
function submit_me()
{
	var tools_name=document.getElementById("tools_name").value;
	if(tools_name=="")
	{
		window.alert("工具名称不得为空!");
		return false;
	}

	document.getElementById("form1").action="<%=request.getContextPath()%>/admin_init_oc_property_tools_ice.do?method=admin_insert_oc_property_tools_ice";
	document.getElementById("form1").submit();
}
</script>
</head>
<body>


<div class="admin_nei">
   <form id="form1" name="form1" method="post" action="">

<div class="xge">
  <div class="gt">   
    <div class="gtt">
   <table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#a0a297">
     <tr>
       <td bgcolor="#eaebe3">属性工具</td>
       </tr>
   </table>
   <table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#E6E6E6" id="admintxt">
      <tr>
       <td align="right" bgcolor="#FFFFFF">属性：</td>
       <td bgcolor="#FFFFFF">
          <select name="pid"> 
            <logic:iterate id="propertyice" name="propertyice"> 
              <option value="${propertyice.id}"> 
                ${propertyice.property_name} 
              </option> 
          </logic:iterate> 
         </select> 
        </td>
      </tr>
     <tr>
       <td align="right" bgcolor="#FFFFFF">是否默认：</td>
       <td bgcolor="#FFFFFF">         
       <select name="def"> 
              <option value="YES"> YES</option> 
               <option value="NO"> NO</option> 
       </select> </td>
      </tr>
      <tr>
       <td align="right" bgcolor="#FFFFFF">工具名称：</td>
       <td bgcolor="#FFFFFF"><input type="text" name="tools_name" id="tools_name" /></td>
      </tr>
      <tr>
       <td bgcolor="#FFFFFF">&nbsp;</td>
       <td bgcolor="#FFFFFF"><input type="button" name="button" id="button" value=" 提交 " onclick="submit_me()"/></td>
      </tr>
   </table>
 </div>
    
    
    
    
    </div>
  
</div>
</form>
</div>







</body>
</html>
